Developer --> Technical Publications

     


Manipulating Keychain Items

You can call the functions KCAddItem and KCDeleteItem to add and delete keychain items from the default keychain. After calling KCDeleteItem, you should call the function KCReleaseItem when you are finished with an item, since KCDeleteItem does not dispose the memory occupied by the item reference.

You can call the function KCUpdateItem to update an item after changing its attributes or data. The item is written to the keychain's permanent data store. KCUpdateItem may display the Unlock Keychain dialog box if the keychain containing the item is currently locked.

You can use the function KCCopyItem to copy a keychain item from one keychain to another. The function KCGetKeychain retrieves the location of a keychain item.


© 2000 Apple Computer, Inc. (Last Updated 07 April 00)